libxl/remus: introduce libxl__remus_setup
authorYang Hongyang <yanghy@cn.fujitsu.com>
Fri, 10 Jul 2015 06:57:52 +0000 (14:57 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 21 Jul 2015 13:10:00 +0000 (14:10 +0100)
commitc2302612338e9ed5a337649f53291dc5c9fcbd74
treefbf249ddb9ae75e306ea278d8ba8c876a52a6b2e
parent8dd129f75b9579858205a9680ee244f5a041cdf0
libxl/remus: introduce libxl__remus_setup

Refactoring Remus setup by introducing libxl__remus_setup API.
All Remus setup work are done in this function.

There is a subtle behavioural change here, which is that if anything
which is now done in _setup fails then the result is a call to
dss->callback( ..,..,ERROR_FAIL) rather than _start returning
AO_CREATE_FAIL(ERROR_FAIL). But this is correct and intended.

Also remove the libxl__ prefix for static functions.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c